package com.xsl.pojo.vo;

import lombok.Data;
import org.springframework.ai.chat.messages.Message;
import org.springframework.ai.chat.messages.MessageType;

@Data
public class MessageVO {//message转vo
    private String role;
    private String content;
    public MessageVO(Message message){
        this.content = message.getText();
        MessageType messageType = message.getMessageType();
        this.role=messageType.getValue();
    }
}
